//
//  FengShuiCore.h
//  PhongThuyHuongNha
//
//  Created by Le Anh Tai on 10/4/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NguHanh.h"
#import "FengshuiDefines.h"

@interface FengShuiCore : NSObject
{
    NSInteger _quaiSo;
}

@property (nonatomic, strong) NSDate *lunarDate;
@property (nonatomic, assign) BOOL isMale;

- (NSDate*)convertToLunarDate:(NSDate*)sunDate;
- (NSDate*)convertToSunDate:(NSDate*)lunarDate;

- (NSString*)getGioAmLich;

+ (NSInteger)numberOfDaySunInMonth:(int)month year:(int)year;
+ (NSInteger)numberOfDayLunarInMonth:(int)month year:(int)year;

- (NSString*)genderString;

- (NSString*)getCan;
- (NSString*)getChi;

- (NSInteger)getQuaiSo;
- (NSString*)getPhiCung;
- (NSString*)getPhiCungOfHuong:(NSString*)huong;

- (NSString*)getMang;

- (NSString*)getHanhOfMonth:(NSInteger)month;
- (NSString*)getHanhOfThienCan:(NSString*)can;
- (NSString*)getHanhOfDiaChi:(NSString*)chi;

- (NSArray*)getTamHapOfChi:(NSString*)chi;
- (NSString*)getLucHapOfChi:(NSString*)chi;
- (NSArray*)getTuHanhXungOfChi:(NSString*)chi;
- (NSString*)getLucXungOfChi:(NSString*)chi;
- (NSString*)getLucHaiOfChi:(NSString*)chi;

@end
